package com.dhcy.mqtt.util;

import java.util.List;

public class IsNull {
	public static boolean isNullOrEmpty(Object obj) {
		if (obj == null)
        {
            return true;
        }
		if ("(null)".equals(obj))
        {
            return true;
        }
        if ((obj instanceof List))
        {
            return ((List) obj).size() == 0;
        }
        if ((obj instanceof String))
        {
            return ((String) obj).trim().equals("");
        }
        return false;
	}
}
